home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / Install / program files / Borland / BDS / 3.0 / Objrepos / CSharp / ComponentTemplate.cs < prev    next >
Encoding:
Text File  |  2004-10-22  |  1.6 KB  |  75 lines

  1. using System;
  2. using System.ComponentModel;
  3. using System.Collections;
  4. using System.Diagnostics;
  5.  
  6. namespace [!Namespace]
  7. {
  8.     /// <summary>
  9.     /// Summary description for [!ComponentName].
  10.     /// </summary>
  11. [!if=(Ancestor, "<NONE>")]
  12.     public class [!ComponentName] : System.ComponentModel.Component
  13. [!else]
  14.     public class [!ComponentName] : [!Ancestor]
  15. [!endif]
  16.     {
  17.         /// <summary>
  18.         /// Required designer variable.
  19.         /// </summary>
  20.         private System.ComponentModel.Container components = null;
  21.  
  22.         public [!ComponentName](System.ComponentModel.IContainer container)
  23.         {
  24.             ///
  25.             /// Required for Windows.Forms Class Composition Designer support
  26.             ///
  27.             container.Add(this);
  28.             InitializeComponent();
  29.  
  30.             //
  31.             // TODO: Add any constructor code after InitializeComponent call
  32.             //
  33.         }
  34.  
  35.         public [!ComponentName]()
  36.         {
  37.             ///
  38.             /// This call is required by the Windows.Forms Designer.
  39.             ///
  40.             InitializeComponent();
  41.  
  42.             //
  43.             // TODO: Add any constructor code after InitializeComponent call
  44.             //
  45.         }
  46.  
  47.         /// <summary> 
  48.         /// Clean up any resources being used.
  49.         /// </summary>
  50.         protected override void Dispose(bool disposing)
  51.         {
  52.             if (disposing)
  53.             {
  54.                 if (components != null)
  55.                 {
  56.                     components.Dispose();
  57.                 }
  58.             }
  59.             base.Dispose(disposing);
  60.         }
  61.  
  62.  
  63.         #region Component Designer generated code
  64.         /// <summary>
  65.         /// Required method for Designer support - do not modify
  66.         /// the contents of this method with the code editor.
  67.         /// </summary>
  68.         private void InitializeComponent()
  69.         {
  70.             components = new System.ComponentModel.Container();
  71.         }
  72.         #endregion
  73.     }
  74. }
  75.